package com.dymall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dymall.common.domain.Result;
import com.dymall.domain.dto.LoginFormDTO;
import com.dymall.domain.po.User;
import com.dymall.domain.vo.UserLoginVO;

public interface UserService extends IService<User> {

    UserLoginVO login(LoginFormDTO loginFormDTO);

    void deduct(String password, Integer amount);

    UserLoginVO loginByPhone(String phone, String code);

    Result<String> sendCode(String phone);
}
